package com.ankang.service.impl;

import com.ankang.entity.TobaccoPackageOutbound;
import com.ankang.mapper.TobaccoPackageOutboundMapper;
import com.ankang.service.TobaccoPackageOutboundService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author mjiajia
 * @date 2025/8/29 10:41
 * @desciption
 */
@Service
public class TobaccoPackageOutboundServiceImpl extends ServiceImpl<TobaccoPackageOutboundMapper, TobaccoPackageOutbound> implements TobaccoPackageOutboundService {

    /**
     * 确保入库操作在事务中执行
     */
    @Transactional(rollbackFor = Exception.class)
    @Override
    public boolean saveOutboundRecord(TobaccoPackageOutbound record) {
        return save(record);
    }
}
